<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="css/home.css">
		<script type="text/javascript">
		 function switchResourceList(id){
			 var divId="#body_content_right_type_content_"+id;
			 $("#body_content_right_type_contents div").hide();
			 $(divId).show();
		 }
		 var count=0;
		 function switchBackgrounds(){
			 num=count%3+1;
			 $("body").attr("style","background-image:url('image/body_background_"+num+".png');");
			   // alert("background-image:url('image/body_background_"+num+".png');");
			 count++;
		 }
		 var stopStwichingBg=false;
		 $(function(){
			 setInterval("switchBackgrounds()",5000);
			 $("#body_content_right_types img").addClass("mouse_over");
		 });
		</script>
	</head>
	<body>
		<div id="body_image">
		</div>
		<div id="body_float">
			<div class="body_float_entry">
				<div class="body_float_entry_title">
					最新动态
				</div>
				<div class="body_float_entry_content">
					<img alt="" src="image/body_background_1.png" width="78" height="47">&nbsp;&nbsp;&nbsp;&nbsp;<a href="article/viewArticle.action?uuid=${article01.uuid}">${article01.title}</a>
				</div>
			</div>
			<div class="body_float_entry">
				<div class="body_float_entry_title">
					实践风采
				</div>
				<div class="body_float_entry_content">
					<img alt="" src="image/body_background_2.png" width="78" height="47">&nbsp;&nbsp;&nbsp;&nbsp;<a href="article/viewArticle.action?uuid=${article02.uuid}">${article02.title}</a>
				</div>
			</div>
			<div class="body_float_entry">
				<div class="body_float_entry_title">
					实践之星
				</div>
				<div class="body_float_entry_content">
					<img alt="" src="image/body_background_3.png" width="78" height="47">
					&nbsp;&nbsp;&nbsp;&nbsp;<a href="article/viewArticle.action?uuid=${article03.uuid}">${article03.title}</a>
				</div>
			</div>
		</div>
		<div id="body_content_a">
			<div id="body_content_left">
				<div class="body_content_title">
					<img alt="" src="image/body_content_left_title_01.gif">
				</div>
				<div class="body_content_content">
					<s:iterator value="latestNotices" status="st">
						<div class="body_conent_left_entry_title">
							<ul>
								<li>				
									<span class="date"><s:date name="updateDate" format="yyyy-MM-dd"/></span>
									●<a href="article/viewArticle.action?uuid=${uuid}" target="_blank">
										 &nbsp;${shortTitle15}
									</a>										
								</li>
							</ul>
						</div>
						<!-- 
						<s:if test="#st.count==1">
							<div class="body_content_left_entry_content">
								${contentAbstract}
							</div>
						</s:if>
						 -->
					</s:iterator>
				</div>
				<div class="body_content_title">
					<img alt="" src="image/body_content_left_title_02.gif">
				</div>
				<div class="body_content_content">
				<!--
					<s:iterator value="articles01" status="st">
						<div class="body_conent_left_entry_title">
							<span>
								<a href="article/viewArticle.action?uuid=${uuid}" target="_blank">${title}&nbsp;&nbsp;&nbsp;&nbsp;</a>
							</span>[<s:date name="updateDate" format="yyyy-MM-dd"/>]
						</div>
					</s:iterator>
					<a href="#"><img class="speimg" alt="" src="image/home_inform.jpg"></a>
					  -->
					
					<a href="resource/toAddResource.action?cid=11"><img class="speimg" alt="" src="image/home_upload.jpg"></a>
					
				</div>
			</div>
			<div id="body_content_right">
				<div class="body_content_title">
					<img alt="" src="image/body_content_right_title.gif">
					<!-- <img alt="" src="image/home_upload.gif" style="margin-left:400px;"> -->
				</div>
				<div class="body_content_content">
					<div id="body_content_right_types">
						<div id="body_content_right_type_01">
							<a href="resource/viewResourcesByCid.action?cid=11"><img alt="" src="image/body_content_right_type_01.jpg" onmouseover="switchResourceList('01')"></a>
						</div>
						<div id="body_content_right_type_02">
							<a href="resource/viewResourcesByCid.action?cid=12"><img alt="" src="image/body_content_right_type_02.jpg" onmouseover="switchResourceList('02')"></a>
						</div>
						<div id="body_content_right_type_03">
							<a href="resource/viewResourcesByCid.action?cid=13"><img alt="" src="image/body_content_right_type_03.jpg" onmouseover="switchResourceList('03')"></a>
						</div>
						<div id="body_content_right_type04">
							<a href="resource/viewResourcesByCid.action?cid=14"><img alt="" src="image/body_content_right_type_04.jpg" onmouseover="switchResourceList('04')"></a>
						</div>
						<div id="body_content_right_type05">
							<a href="resource/viewResourcesByCid.action?cid=28"><img alt="" src="image/body_content_right_type_05.jpg" onmouseover="switchResourceList('05')"></a>
						</div>
						<div style="clear:both;"></div>
					</div>
					<div id="body_content_right_type_contents">
						<div id="body_content_right_type_content_01">
							<ul>
								<s:iterator value="resources01">
									<li><span><font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
								<s:elseif test="type=='POINT'">教学要点</s:elseif>
								<s:elseif test="type=='PLAN'">教学方案</s:elseif>
								<s:elseif test="type=='TOPIC'">热点难点解读</s:elseif>
								<s:elseif test="type=='STUFF'">教学资源</s:elseif>
								<s:elseif test="type=='MEANS'">教学方法</s:elseif>									
								<s:elseif test="type=='LIVE'">实践教学</s:elseif>
								<s:else>未知</s:else>]</font><a href="resource/viewResourceByUuid.action?uuid=${uuid}">${title}</a></span><s:date name="publicTime" format="yyyy-MM-dd"/>
								</s:iterator>
							</ul>
						</div>
						<div id="body_content_right_type_content_02">
							<ul>
								<s:iterator value="resources02">
									<li><span><font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
								<s:elseif test="type=='POINT'">教学要点</s:elseif>
								<s:elseif test="type=='PLAN'">教学方案</s:elseif>
								<s:elseif test="type=='TOPIC'">热点难点解读</s:elseif>
								<s:elseif test="type=='STUFF'">教学资源</s:elseif>
								<s:elseif test="type=='MEANS'">教学方法</s:elseif>									
								<s:elseif test="type=='LIVE'">实践教学</s:elseif>
								<s:else>未知</s:else>]</font><a href="resource/viewResourceByUuid.action?uuid=${uuid}">${title}</a></span><s:date name="publicTime" format="yyyy-MM-dd"/>
								</s:iterator>
							</ul>
						</div>
						<div id="body_content_right_type_content_03">
							<ul>
								<s:iterator value="resources03">
									<li><span><font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
								<s:elseif test="type=='POINT'">教学要点</s:elseif>
								<s:elseif test="type=='PLAN'">教学方案</s:elseif>
								<s:elseif test="type=='TOPIC'">热点难点解读</s:elseif>
								<s:elseif test="type=='STUFF'">教学资源</s:elseif>
								<s:elseif test="type=='MEANS'">教学方法</s:elseif>									
								<s:elseif test="type=='LIVE'">实践教学</s:elseif>
								<s:else>未知</s:else>]</font><a href="resource/viewResourceByUuid.action?uuid=${uuid}">${title}</a></span><s:date name="publicTime" format="yyyy-MM-dd"/>
								</s:iterator>
							</ul>
						</div>
						<div id="body_content_right_type_content_04">
							<ul>
								<s:iterator value="resources04">
									<li><span><font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
								<s:elseif test="type=='POINT'">教学要点</s:elseif>
								<s:elseif test="type=='PLAN'">教学方案</s:elseif>
								<s:elseif test="type=='TOPIC'">热点难点解读</s:elseif>
								<s:elseif test="type=='STUFF'">教学资源</s:elseif>
								<s:elseif test="type=='MEANS'">教学方法</s:elseif>									
								<s:elseif test="type=='LIVE'">实践教学</s:elseif>
								<s:else>未知</s:else>]</font><a href="resource/viewResourceByUuid.action?uuid=${uuid}">${title}</a></span><s:date name="publicTime" format="yyyy-MM-dd"/>
								</s:iterator>
							</ul>
						</div>
						<div id="body_content_right_type_content_05">
							<ul>
								<s:iterator value="resources05">
									<li><span><font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
								<s:elseif test="type=='POINT'">教学要点</s:elseif>
								<s:elseif test="type=='PLAN'">教学方案</s:elseif>
								<s:elseif test="type=='TOPIC'">热点难点解读</s:elseif>
								<s:elseif test="type=='STUFF'">教学资源</s:elseif>
								<s:elseif test="type=='MEANS'">教学方法</s:elseif>									
								<s:elseif test="type=='LIVE'">实践教学</s:elseif>
								<s:else>未知</s:else>]</font><a href="resource/viewResourceByUuid.action?uuid=${uuid}">${title}</a></span><s:date name="publicTime" format="yyyy-MM-dd"/>
								</s:iterator>
							</ul>
						</div>
					</div>
					<div style="clear:both;"></div>
				</div>
			</div>
			<div style="clear:both;"></div>
		</div>
	</body>
</html>